﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SDMX_Common = SDMX_ML.Framework.Common;

namespace SDMX_ML.Framework.Metadata
{
    public class ReportedAttributeType
    {
        //Elements
        private List<SDMX_Common.TextType> _value;
        private string _startTime;
        private List<ReportedAttributeType> _reportedAttribute;
        private SDMX_Common.AnnotationsType _annotations;

        //Attributes
        private SDMX_Common.IDType _conceptID;

        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="conceptID">ConceptID.</param>
        public ReportedAttributeType(SDMX_Common.IDType conceptID)
        {
            if (conceptID != null)
            {
                _reportedAttribute = new List<ReportedAttributeType>();
                _value = new List<SDMX_Common.TextType>();
                _conceptID = conceptID;
            }
            else
            {
                throw new Exception("ConceptID is a required field in ReportedAttributeType.");
            }
        }

        #region Properties

        /// <summary>
        /// ConceptID.
        /// </summary>
        public SDMX_Common.IDType ConceptID
        {
            get { return _conceptID; }
            set { _conceptID = value; }
        }

        /// <summary>
        /// Value.
        /// </summary>
        public List<SDMX_Common.TextType> Value
        {
            get { return _value; }
            set { _value = value; }
        }

        /// <summary>
        /// StartTime.
        /// </summary>
        public string StartTime
        {
            get { return _startTime; }
            set { _startTime = value; }
        }

        /// <summary>
        /// ReportedAttribute.
        /// </summary>
        public List<ReportedAttributeType> ReportedAttribute
        {
            get { return _reportedAttribute; }
            set { _reportedAttribute = value; }
        }

        /// <summary>
        /// Annotations.
        /// </summary>
        public SDMX_Common.AnnotationsType Annotations
        {
            get { return _annotations; }
            set { _annotations = value; }
        }

        #endregion
    }
}
